﻿using System.Web;
using System.Web.SessionState;



namespace Aga.Psad.Mvc.Helpers
{
    public static class SessionHelper
    {
        private static HttpSessionState CurrentSession
        {
            get
            {
                return HttpContext.Current.Session;
            }
        }

        public static int TipoDeUsuario
        {
            get
            {
                if (CurrentSession["TipoDeUsuario"] != null)
                    return (int)CurrentSession["TipoDeUsuario"];
                else
                    return -1;
            }
            set
            {
                CurrentSession["TipoDeUsuario"] = value;
            }
        }
    }
}
